{% extends "base.html" %}

{% block title %}{{ application_name }} - {{ page.name|escape }} - View{% endblock %}

{% block head %}
	<style type="text/css">
	
	#body a[href ^="http"] {
	color: #36b;
	background: url(/static/images/external.png) center right no-repeat;
	padding-right: 13px;
	}
	
	#body h1 a.wikiword, #body h1 a.wikiword:visited {
	color: black;
	text-decoration: none;
	}

  </style>
{% endblock %}

{% block content_tab_others %}
	<div id="tabs-2">
		<table width="800" border="0" align="center">
			<tr><th colspan="3">Search result {{ search_title }}</th></tr>	
			<tr><th>Version</th><th>Author</th><th>Date</th></tr>
			{% for page_version in page_versions %}
				<tr>
					<th>
						<a href="/pages/{{page_version.page.name}}?version={{page_version.version}}">
							{{ page_version.version }}
						</a>
					</th>
					<th>{{ page_version.author }}</th>
					<th>{{ page_version.date }}</th>
				</tr>
			{% endfor %}
		</table>
	</div>
{% endblock %}

{% block buttons %}
	<span class="item">
		<input type="button" class='ui-corner-all' onclick="location.href='{{ edit_url|escape }}'" value="Edit This Page"/>
	</span>
{% endblock %}

{% block content_tab_head %}
	<li><a href="#tabs-1">Content</a></li>
	<li><a href="#tabs-2">History</a></li>
{% endblock %}

{% block body %}
	{{ before_view_content }}
	{{ content }}
<strong>{{ current_version }}</strong>
{% endblock %}
